package com.tianqingwl.gsystem.sysuser.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tianqingwl.gsystem.sysuser.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

public interface SysUserMapper extends BaseMapper<SysUser> {

    int updateSysUserPassword(@Param("username") String username, @Param("password") String password);

    SysUser findSysUserByUsername(String username);

    void insertUserRole(@Param("userId") Long userId, @Param("roleId") Long roleId);

    void deleteUserRole(Long userId);

    int countUserRole(Long roleId);
}
